package cn.itsource.pethome.detp.service;

import cn.itsource.pethome.base.util.PageList;
import cn.itsource.pethome.detp.domian.Department;
import cn.itsource.pethome.detp.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    Department findByDeptId(Long id);
    PageList<Department> findAll(DepartmentQuery departmentQuery);
    void addDept(Department department);
    void uptDeptById(Department department);
    void delDeptById(Long id);
    /**
     * 批量删除
     * @param ids
     */
    void batchDelDept(List<Integer> ids);

    /**
     * 查询全部
     * @return
     */
    List<Department> getTree();
}
